package com.huwc.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.huwc.bean.Employee;
import com.huwc.bean.User;
import com.huwc.mapper.UserMapper;
import com.huwc.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huwenchao
 * @since 2019-01-12
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @DS("master")
    public List<User> selectALlMaster(){
        return baseMapper.selectList(null) ;
    }

    @DS("query")
    public List<User> selectALlSlave(){
        return baseMapper.selectList(null) ;
    }

}
